package xyz.renyumeng.xkm.es;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author renyumeng
 * @date Created in 20:11 2023/7/3
 */

@SpringBootApplication(
        exclude = DataSourceAutoConfiguration.class,
        scanBasePackages = {
                "xyz.renyumeng.xkm.config.json",
                "xyz.renyumeng.xkm.es",

        }
)
@EnableSwagger2
@EnableFeignClients(basePackages = "xyz.renyumeng")
@EnableDiscoveryClient
@EnableElasticsearchRepositories
public class ServiceEsApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceEsApplication.class, args);
    }
}
